package com.itic.appbase.framework.type;

public enum CouponState {

	sys(0,"sys"),goods(1,"goods");
	private int type;
	private String name;
	CouponState(int type, String name) {
		this.type = type;
		this.name = name;
	}
	
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static CouponState getCouponState (int type) {
		CouponState CouponState = null;
		switch (type) {
		case 0:
			CouponState = CouponState.sys;
			break;
		case 1:
			CouponState = CouponState.goods;
			break;
		}
		return CouponState;
	}
}
